<template>
	<view class="xzfx-search-bar">
		<view class="search-box">
			<view class="icon xzfx_icon_search"></view>
			<input class="input" type="text" :placeholder="placeholder" placeholder-style="font-size:28rpx;color:#999999;">
			<view class="btn">搜索</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"xzfx-search-bar",
		props: {
			placeholder: {
				type: String,
				default: "请输入关键字"
			}
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style scoped lang="scss">
	.xzfx-search-bar{
		width: 100%;
		height: 140rpx;
		display: flex;
		align-items: center;
		padding: 0 $xzfx-spacing;
		overflow: hidden;
		.search-box{
			width: 100%;
			border-radius: 37rpx;
			overflow: hidden;
			display: flex;
			align-items: center;
			background-color: #ffffff;
			padding: 4rpx 8rpx 4rpx 20rpx;
			.icon{
				width: 60rpx;
				height: 74rpx;
				color: #999999;
				display: flex;
				justify-content: center;
				align-items: center;
				font-size: 32rpx;
			}
			.input{
				width: calc(100% - 180rpx);
				height: 74rpx;
				font-size: 28rpx;
			}
			.btn{
				width: 130rpx;
				height: 66rpx;
				display: flex;
				justify-content: center;
				align-items: center;
				font-size: 28rpx;
				border-radius: 33rpx;
				color: #fff;
				background: $xzfx-theme;
			}
		}
	}
</style>